package com.hjx.mapper;

import com.hjx.entity.SysRole;

import java.util.List;

/**
 * <p>Title:</p>
 * <p>Description:</p>
 *
 * @author hjx
 * @date 2020/6/13 - 10:13
 */
public interface SysRoleMapper {
    SysRole findOne(String rid);
    List<SysRole> findAll();
    //查询全部角色和对应权限
    List<SysRole> findAllRoleAndMenu();
    boolean insert(SysRole sysRole);
    boolean insertBatch(SysRole[] roles);
    boolean update(SysRole sysRole);
    boolean delete(String rid);

    //查询角色和对应的权限
//    SysRole findRoleAndMenu(String rid);
}
